-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: attempt to reduce duplication in legacy schema changer txn management #91567
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This stuff is crufty. This seems fine, though sort of shocking how repetitive the code is around these parts. If somebody didn't know better, they might assume it was for a reason, but I don't think it is.
What if we re-arranged things like in this commit?
Reviewed 1 of 1 files at r1.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @ZhouXing19)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if we re-arranged things like in this commit?
Wow thanks for writing this up. Yeah it makes sense to have things all tracing down to txnWithExecutor
. Do you want me to close this PR or cherry-pick your commit?
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @ZhouXing19)
No strong preferences, cherry-pick works for me. |
…ement These functions can all be defined in terms of `txnWithExecutor`. It was confusing that they were not. Release note: None
0b468c0
to
e03be7b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @ZhouXing19)
Thanks! |
Build succeeded: |
These functions can all be defined in terms of
txnWithExecutor
. It wasconfusing that they were not.
Epic: none
Release note: None